From 7ecd8f5452ff1d90b0be8fb43226c4ea7fbf09bf Mon Sep 17 00:00:00 2001 From: alexmot Date: Mon, 8 Mar 2004 22:39:01 +0000 Subject: [PATCH] re-instate gsshortnames option in gpx.c --- gpx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gpx.c b/gpx.c index 9eae7af9b..f71bd0a70 100644 --- a/gpx.c +++ b/gpx.c @@ -77,6 +77,7 @@ typedef enum { tt_wpt_time, tt_wpt_type, tt_wpt_urlname, + tt_cache_name, tt_cache_container, tt_cache_type, tt_cache_difficulty, @@ -144,6 +145,7 @@ tag_mapping tag_path_map[] = { { tt_wpt_urlname, 0, "/gpx/wpt/urlname" }, { tt_wpt_sym, 0, "/gpx/wpt/sym" }, { tt_wpt_type, 1, "/gpx/wpt/type" }, + { tt_cache_name, 1, "/gpx/wpt/groundspeak:cache/groundspeak:name" }, { tt_cache_container, 1, "/gpx/wpt/groundspeak:cache/groundspeak:container" }, { tt_cache_type, 1, "/gpx/wpt/groundspeak:cache/groundspeak:type" }, { tt_cache_difficulty, 1, "/gpx/wpt/groundspeak:cache/groundspeak:difficulty" }, @@ -598,6 +600,13 @@ gpx_end(void *data, const char *el) cur_tag = NULL; wpt_tmp = NULL; break; + case tt_cache_name: + if (gsshortnames) { + if (wpt_tmp->notes) + xfree(wpt_tmp->notes); + wpt_tmp->notes = xstrdup(cdatastrp); + } + break; case tt_cache_container: wpt_tmp->gc_data.container = gs_mkcont(cdatastrp); break; -- 2.30.2